package edu.hcmiu.portal.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * <a href="hook_activitySoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>edu.hcmiu.portal.service.http.hook_activityServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see edu.hcmiu.portal.service.http.hook_activityServiceSoap
 *
 */
public class hook_activitySoap implements Serializable {
    private long _actID;
    private String _actName;
    private long _userID;
    private long _catID;
    private long _taglistID;
    private Date _actTime;
    private int _actDuration;
    private String _actSubject;
    private String _actModel;
    private int _actFrequency;

    public hook_activitySoap() {
    }

    public static hook_activitySoap toSoapModel(hook_activity model) {
        hook_activitySoap soapModel = new hook_activitySoap();

        soapModel.setActID(model.getActID());
        soapModel.setActName(model.getActName());
        soapModel.setUserID(model.getUserID());
        soapModel.setCatID(model.getCatID());
        soapModel.setTaglistID(model.getTaglistID());
        soapModel.setActTime(model.getActTime());
        soapModel.setActDuration(model.getActDuration());
        soapModel.setActSubject(model.getActSubject());
        soapModel.setActModel(model.getActModel());
        soapModel.setActFrequency(model.getActFrequency());

        return soapModel;
    }

    public static hook_activitySoap[] toSoapModels(hook_activity[] models) {
        hook_activitySoap[] soapModels = new hook_activitySoap[models.length];

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModel(models[i]);
        }

        return soapModels;
    }

    public static hook_activitySoap[][] toSoapModels(hook_activity[][] models) {
        hook_activitySoap[][] soapModels = null;

        if (models.length > 0) {
            soapModels = new hook_activitySoap[models.length][models[0].length];
        } else {
            soapModels = new hook_activitySoap[0][0];
        }

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModels(models[i]);
        }

        return soapModels;
    }

    public static hook_activitySoap[] toSoapModels(List<hook_activity> models) {
        List<hook_activitySoap> soapModels = new ArrayList<hook_activitySoap>(models.size());

        for (hook_activity model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new hook_activitySoap[soapModels.size()]);
    }

    public long getPrimaryKey() {
        return _actID;
    }

    public void setPrimaryKey(long pk) {
        setActID(pk);
    }

    public long getActID() {
        return _actID;
    }

    public void setActID(long actID) {
        _actID = actID;
    }

    public String getActName() {
        return _actName;
    }

    public void setActName(String actName) {
        _actName = actName;
    }

    public long getUserID() {
        return _userID;
    }

    public void setUserID(long userID) {
        _userID = userID;
    }

    public long getCatID() {
        return _catID;
    }

    public void setCatID(long catID) {
        _catID = catID;
    }

    public long getTaglistID() {
        return _taglistID;
    }

    public void setTaglistID(long taglistID) {
        _taglistID = taglistID;
    }

    public Date getActTime() {
        return _actTime;
    }

    public void setActTime(Date actTime) {
        _actTime = actTime;
    }

    public int getActDuration() {
        return _actDuration;
    }

    public void setActDuration(int actDuration) {
        _actDuration = actDuration;
    }

    public String getActSubject() {
        return _actSubject;
    }

    public void setActSubject(String actSubject) {
        _actSubject = actSubject;
    }

    public String getActModel() {
        return _actModel;
    }

    public void setActModel(String actModel) {
        _actModel = actModel;
    }

    public int getActFrequency() {
        return _actFrequency;
    }

    public void setActFrequency(int actFrequency) {
        _actFrequency = actFrequency;
    }
}
